package com.sf.dlb.jpa.repository;

import com.sf.dlb.jpa.model.UserNewInfo;
import com.sf.dlb.jpa.model.UserWalletInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * 用户新闻表 Repository
 *
 * Created by jing.tan on 2018/5/21.
 */
@Repository
public interface UserNewRepository extends JpaRepository<UserNewInfo, Long> {
    /**
     * 根据用户ID-查询新闻表
     * @param userId
     * @param DelFlag
     * @return
     */
    UserNewInfo findByUserIdAndDelFlag(String userId, String DelFlag);
}